package cn.wgx.study.base.zuul.web;

import cn.wgx.study.base.zuul.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class ProfileCtl {

    @Autowired
    AdminService adminService;

    @RequestMapping
    public String getPro(){
        return adminService.getProfile();
    }


    @RequestMapping("abc")
    public String getPro2(){
        return "abc";
    }


    @RequestMapping("/api/a")
    public String getPro3(){
        return "/api/a";
    }

    @RequestMapping("/api")
    public String getPro4(){
        return "/api";
    }

    @RequestMapping("/a")
    public String getPro5(){
        return "/a";
    }
}
